﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepCultivation.Common.Domain.Week3
{
    /// <summary>
    /// 死亡管理表
    /// </summary>
    [Table("DeathManagement")]
    public class DeathManagement
    {
        [Key]
        /// <summary>
        /// 死亡管理ID
        /// </summary>
        public int DeathManagementId { get; set; }

        /// <summary>
        /// 羊只耳号
        /// </summary>
        public int BreedingSheepArchiveId { get; set; }
        /// <summary>
        /// 死亡原因（下拉框）
        /// </summary>
        public int DeathType { get; set; }

        /// <summary>
        /// 品种Id（品种表 Sheepvariety）
        /// </summary>
        public int SheepvarietyId { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int SheepSex { get; set; }
        /// <summary>
        /// 当前栋舍（栋舍Id Building） 
        /// </summary>
        public int BuildingId { get; set; }
        /// <summary>
        /// 当前栏位（栏位Id Columns）
        /// </summary>
        public int ColumnsId { get; set; }
        /// <summary>
        /// 死亡时间
        /// </summary>
        public DateTime DeathTime { get; set; }
        /// <summary>
        /// 羊只类型（羊只类型表）
        /// </summary>
        public int SheepTypeId { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string? Numberes { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? DeathManagementRemark { get; set; }

        /// <summary>
        /// 序号Id （种母配种表 SheepHybridization）
        /// </summary>
        public int? SheepHybridizationId { get; set; }

    }
}
